package top.zywork.enums;

/**
 * 常用内容类型枚举<br/>
 * 创建于2017-09-14<br/>
 *
 * @author 王振宇
 * @version 1.0
 * @see org.apache.http.entity.ContentType
 * @see MIMETypeEnum
 */
public enum ContentTypeEnum {

    HTML("text/html;charset=UTF-8"),
    TEXT_PLAIN("text/plain;charset=UTF-8"),
    XML("text/xml;charset=UTF-8"),
    JSON("application/json;charset=UTF-8"),
    FORM_URLENCODED("application/x-www-form-urlencoded;charset=UTF-8"),
    OCTET_STREAM("application/octet-stream"),
    FORM_DATA("multipart/form-data"),
    PNG("image/png"),
    JPEG("image/jpeg");

    private String value;

    ContentTypeEnum(String value) {
        this.value = value;
    }

    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

}
